package com.zhenhao.xsq.adapter.notice;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zhenhao.xsq.R;

import androidx.annotation.NonNull;


public class NoticeAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    public NoticeAdapter() {
        super(R.layout.adapter_notice);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
//        helper.setText(R.id.tv_title, item.getTitle())
//                .setText(R.id.tv_ly, item.getPlatform() == 1 ? "政府机关" : "物业服务中心")//platform1.监管平台 2.欣社区
//                .setText(R.id.tv_time, item.getSendDate());
//
//        if (type.equals("1")) {
//            helper.setImageResource(R.id.iv_tb, item.getPlatform() == 1 ? R.mipmap.wy_notice2 : R
//                    .mipmap.wy_notice1);
//        } else {
//            helper.setImageResource(R.id.iv_tb, item.getPlatform() == 1 ? R.mipmap.wy_gonggao2 : R
//                    .mipmap.wy_gonggao1);
//        }
    }

}
